package com.echovin.esb.gateway.service.impl;

import com.echovin.esb.gateway.mapper.GatewayServiceActionMapper;
import com.echovin.esb.gateway.model.GatewayServerAction;
import com.echovin.esb.gateway.service.GatewayServiceActionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GatewayServiceActionServiceImpl implements GatewayServiceActionService {
    @Autowired
    GatewayServiceActionMapper gatewayServiceActionMapper;

    public GatewayServiceActionServiceImpl() {
    }

    @Override
    public List<GatewayServerAction> getGatewayServiceAction() {
        return gatewayServiceActionMapper.getGatewayServiceAction();
    }

    @Override
    public int delete(GatewayServerAction record) {
        return gatewayServiceActionMapper.delete(record);
    }

    @Override
    public int update(GatewayServerAction record) {
        return gatewayServiceActionMapper.update(record);
    }
}
